package zhoug.common.interfaces;

import androidx.annotation.NonNull;
import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleOwner;

/**
 *
 *生命周期观察者,生命周期变化后自动回掉对应的方法,默认实现
 *
 * @Author HK-LJJ
 * @Date 2019/11/27
 * @Description
 * @deprecated see {@link androidx.lifecycle.DefaultLifecycleObserver}
 */
@Deprecated
public interface DefaultLifecycleObserver extends FullLifecycleObserver {

    @Override
    default void onCreate(@NonNull LifecycleOwner owner) {
    }

    @Override
    default void onStart(@NonNull LifecycleOwner owner) {

    }

    @Override
    default void onResume(@NonNull LifecycleOwner owner) {

    }

    @Override
    default void onPause(@NonNull LifecycleOwner owner) {

    }

    @Override
    default void onStop(@NonNull LifecycleOwner owner) {

    }

    @Override
    default void onDestroy(@NonNull LifecycleOwner owner) {

    }

    @Override
    default void onStateChange(@NonNull LifecycleOwner owner, Lifecycle.Event event) {

    }
}
